package com.zishuimuyu.login_wx.servic.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zishuimuyu.login_wx.entity.User;
import com.zishuimuyu.login_wx.mapper.UserMapper;
import com.zishuimuyu.login_wx.servic.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author 紫水木鱼
 */
@Service
@Transactional
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Autowired
    private UserMapper userMapper;
    /**
     * 根据用户名获取User
     *
     * @param username
     * @return
     */
    @Override
    public User selUserByName(String username) {
        return userMapper.selUserByName(username);
    }
}
